<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Flat UI</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- Loading Bootstrap -->
    <link href="../assets/css/bootstrap.css" rel="stylesheet">

    <!-- Loading Flat UI -->
    <link href="../assets/css/flat-ui.css" rel="stylesheet">
    <link href="../assets/css/github.css" rel="stylesheet">
    <link rel="shortcut icon" href="../assets/images/favicon.ico">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <![endif]-->
  </head>
  <body>


    <div class="container">
      <div class="demo-headline">
        <h1 class="demo-logo">Lettuce
          <small>Behaviour Driven Development for python</small></h1>
      </div>
      <div class="row">
        <div class="span4">
          <div class="sidebar-nav">
            <ul class="share mrl">
              <div class="btn btn-primary btn-block btn-large">
                <h3>Sections</h3>
              </div>
              
              <a class="btn btn-inverse btn-block btn-large"
       href="#overview">
         Overview
    </a>
  
    
      <a class="btn btn-inverse btn-block btn-large"
       href="#on-bdd">
         On BDD
    </a>
  
    
      <a class="btn btn-inverse btn-block btn-large"
       href="#introducing-lettuce">
         Introducing Lettuce
    </a>
  
    
      <a class="btn btn-inverse btn-block btn-large"
       href="#lettuce-pragma">
         Lettuce pragma
    </a>
  
    
      <a class="btn btn-inverse btn-block btn-large"
       href="#hands-on-">
         Hands on!
    </a>
  
    
  
              
            </ul>
          </div>
        </div>
        <div class="span8">
          <h1 id="overview" name="overview"><a href="#overview">Overview</a></h1><h2 id="on-bdd" name="on-bdd"><a href="#on-bdd">On BDD</a></h2>
<p>Behaviour-driven development is a very good approach for maintaining the
workflow plain, so you only spend time with what really matters:
business value.</p>

<p>The common BDD approach basically consists in:</p>

<ul>
<li>  writing some unit tests</li>
<li>  running these tests</li>
<li>  making these tests fail</li>
<li>  writing code</li>
<li>  making the code pass these tests (green status)</li>
</ul>

<p>This is a very awesome practice, since you can build huge and reliable
software without fearing the future. You don&#39;t need to worry if those
millions of lines of code won&#39;t make sense in 10 years, as long as they
keep passing the tests. Despite BDD, other kind of tests are very
important and usually follow a similar workflow: functional, integration
and acceptance.</p>

<p>Nevertheless, BDD_ brings new perspectives to you, one of them is the
outside-in testing development. With this approach you can build your
software starting with the most external layer, and go deeper until
reach unitary tests.</p>
<h2 id="introducing-lettuce" name="introducing-lettuce"><a href="#introducing-lettuce">Introducing Lettuce</a></h2>
<p>Lettuce is a very simple BDD tool based on the Cucumber, which currently
has many more features than Lettuce.</p>

<p>Lettuce aims the most common tasks on BDD and it focus specially on
those that make BDD so fun :)</p>
<h2 id="lettuce-pragma" name="lettuce-pragma"><a href="#lettuce-pragma">Lettuce pragma</a></h2>
<p>Provide to the developers the ability of describing :ref:features
&lt;intro-wtf&gt; in a natural language, by creating one or more scenarios</p>

<p>Each scenario has one possible behaviour of the feature you want to
implement. To make the scenarios run python code, it is necessary to
define :ref:steps &lt;reference-features&gt;.</p>
<h2 id="hands-on-" name="hands-on-"><a href="#hands-on-">Hands on!</a></h2>
<p>This documentation will drive you through all the Lettuce features. When
you feel a bit comfortable, go to the :ref:first part of the tutorial
&lt;tutorial-simple&gt;, or go further on the :ref:reference
&lt;reference-features&gt;.</p>

        </div>
      </div>
    </div> <!-- /container -->

    <footer>
      <div class="container">
        <div class="row">
          <div class="span7">
            <h3 class="footer-title">Lettuce</h3>
            <p>Lettuce is maintained by gabrielfalcao. <br />
              This documentation was generated automatically by <a href="http://octomarks.io/gabrielfalcao/markment">Markment</a>.
            </p>
            <p>
              This theme was written by Gabriel Falcão using the <a href="http://designmodo.github.io/Flat-UI/">Flat-UI</a> library by
              <a class="footer-brand" href="http://designmodo.com" target="_blank">
                <img src="../assets/images/footer/logo.png" alt="Designmodo.com">
              </a>
            </p>
          </div> <!-- /span8 -->

          <div class="span5">
            <div class="footer-banner">
              <h3 class="footer-title">Table of contents</h3>
              <ul>
                 
                <li>
                  <a href="../contents.html">
                        contents.md
                  </a>
                </li>
                 
                <li>
                  <a href="../index.html">
                        index.md
                  </a>
                </li>
                 
                <li>
                  <a href="../dev/documentation.html">
                        documentation.md
                  </a>
                </li>
                 
                <li>
                  <a href="../dev/index.html">
                        index.md
                  </a>
                </li>
                 
                <li>
                  <a href="../dev/install-debian-squeeze.html">
                        install-debian-squeeze.md
                  </a>
                </li>
                 
                <li>
                  <a href="../dev/install.html">
                        install.md
                  </a>
                </li>
                 
                <li>
                  <a href="../dev/testing.html">
                        testing.md
                  </a>
                </li>
                 
                <li>
                  <a href="./install.html">
                        install.md
                  </a>
                </li>
                 
                <li>
                  <a href="./overview.html">
                        overview.md
                  </a>
                </li>
                 
                <li>
                  <a href="./wtf.html">
                        wtf.md
                  </a>
                </li>
                 
                <li>
                  <a href="../recipes/django-lxml.html">
                        django-lxml.md
                  </a>
                </li>
                 
                <li>
                  <a href="../recipes/nose.html">
                        nose.md
                  </a>
                </li>
                 
                <li>
                  <a href="../reference/cli.html">
                        cli.md
                  </a>
                </li>
                 
                <li>
                  <a href="../reference/features.html">
                        features.md
                  </a>
                </li>
                 
                <li>
                  <a href="../reference/languages.html">
                        languages.md
                  </a>
                </li>
                 
                <li>
                  <a href="../reference/terrain.html">
                        terrain.md
                  </a>
                </li>
                 
                <li>
                  <a href="../tutorial/django.html">
                        django.md
                  </a>
                </li>
                 
                <li>
                  <a href="../tutorial/multiline.html">
                        multiline.md
                  </a>
                </li>
                 
                <li>
                  <a href="../tutorial/scenario-outlines.html">
                        scenario-outlines.md
                  </a>
                </li>
                 
                <li>
                  <a href="../tutorial/simple.html">
                        simple.md
                  </a>
                </li>
                 
                <li>
                  <a href="../tutorial/steps-from-step-definitions.html">
                        steps-from-step-definitions.md
                  </a>
                </li>
                 
                <li>
                  <a href="../tutorial/tables.html">
                        tables.md
                  </a>
                </li>
                 
              </ul>
            </div>
          </div>
        </div>
      </div>
    </footer>
  </body>
</html>